<%--@elvariable id="calculateBurn" type="com.infitecs.eyas.combustion.model.CalculateBurn"--%>
<%--@elvariable id="operateField" type="com.infitecs.eyas.power.model.OperateField"--%>

<%--
  Created by IntelliJ IDEA.
  User: Demon
  Date: 2015/6/15
  Time: 16:45
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <%@include file="../includes/head.jsp" %>
    <title>${menu.menuName}</title>
</head>
<body class="page-header-fixed page-quick-sidebar-over-content">
<%@include file="../includes/top.jsp" %>
<div class="page-container">
    <%@include file="../includes/sidebar.jsp" %>
    <div class="page-content-wrapper">
        <div class="page-content">
            <%@include file="../includes/current.jsp" %>
            <div class="row">
                <div class="col-md-12">
                    <div class="portlet box">
                        <div class="portlet-body form">
                            <div class="form-body">
                                <!--内容开始-->
                                <div class="row">
                                    <!--左侧开始-->
                                    <div class="col-md-6">
                                        <!--锅炉参数开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>锅炉参数
                                                    <span class="help-inline">
                                                        &nbsp; &nbsp; &nbsp; &nbsp;不引用锅炉数据
                                                    <input type="checkbox" id="yyglState" name="yyglState"
                                                    <c:if test="${calculateBurn!=null&&operateField.yyglState=='1'}">
                                                               checked
                                                   </c:if>
                                                            >
                                                </span>
                                                </h2>
                                            </div>
                                            <!--标题结束-->
                                            <!--内容开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E3" name="yyglLable"
                                                               style="padding-left: 0">过量空气系数</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E3')" name="yygl"
                                                                   value="${calculateBurn.e3Show}"
                                                                   id="E3"/>
                                                            <span class="help-inline">
                                                                /
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E4" name="yyglLable"
                                                               style="padding-left: 0">锅炉燃煤量</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E4')"
                                                                   value="${calculateBurn.e4Show}"
                                                                   id="E4" name="yygl"/>
                                                            <span class="help-inline">
                                                                t/h
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E6" name="yyglLable"
                                                               style="padding-left: 0">机械未完全燃烧损失</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E6')"
                                                                   value="${calculateBurn.e6Show}"
                                                                   id="E6" name="yygl"/>
                                                            <span class="help-inline">
                                                                %
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E8" name="yyglLable"
                                                               style="padding-left: 0">飞灰份额</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E8')"
                                                                   value="${calculateBurn.e8Show}"
                                                                   id="E8"  name="yygl"/>
                                                            <span class="help-inline">
                                                                %
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E20" name="yyglLable"
                                                               style="padding-left: 0">空气预热器漏风率</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E20')"
                                                                   value="${calculateBurn.e20Show}"
                                                                   id="E20" name="yygl"/>
                                                            <span class="help-inline">
                                                                %
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                            <!--内容结束-->
                                        </div>
                                        <!--锅炉参数结束-->
                                        <!--除尘器入口开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>除尘器入口烟气</h2>
                                            </div>
                                            <!--标题结束-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E70"
                                                               style="padding-left: 0">空预器至除尘器烟道长度</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E70')"
                                                                   value="${calculateBurn.e70Show}"
                                                                   id="E70"/>
                                                            <span class="help-inline">
                                                                m
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class=" control-label col-md-4" for="E88" id="E88Label"
                                                               style="padding-left: 0">烟气温度</label>

                                                        <div class="col-md-8">
                                                            <input type="text"
                                                                   class="form-control input-inline calculable"
                                                                   onblur="BurnPage.updata('E88')"
                                                                   value="${calculateBurn.e88Show}"
                                                                   id="E88"/>
                                                            <span class="help-inline">
                                                                ℃<input type="checkbox" id="e88State" name="e88State"
                                                            <c:if test="${calculateBurn!=null&&operateField.e88State=='1'}">
                                                                       checked
                                                           </c:if>
                                                                    >
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E89"
                                                               style="padding-left: 0">空气预热器出口至除尘器入口段烟道阻力</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E89')"
                                                                   value="${calculateBurn.e89Show}"
                                                                   id="E89"/>
                                                            <span class="help-inline">
                                                               Pa
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--除尘器入口结束-->
                                        <!--引风机入口烟气开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>引风机入口烟气</h2>
                                            </div>
                                            <!--标题结束-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E137"
                                                               style="padding-left: 0">除尘器至引风机烟道长度</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E137')"
                                                                   value="${calculateBurn.e137Show}"
                                                                   id="E137"/>
                                                            <span class="help-inline">
                                                                m
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E155" id="E155Label"
                                                               style="padding-left: 0">烟气温度</label>

                                                        <div class="col-md-8">
                                                            <input type="text"
                                                                   class="form-control input-inline calculable"
                                                                   onblur="BurnPage.updata('E155')"
                                                                   value="${calculateBurn.e155Show}"
                                                                   id="E155"/>
                                                            <span class="help-inline">
                                                                ℃<input type="checkbox" id="e155State" name="e155State"
                                                            <c:if test="${calculateBurn!=null&&operateField.e155State=='1'}">
                                                                       checked
                                                           </c:if>
                                                                    >
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E156"
                                                               style="padding-left: 0">除尘器至引风机入口段烟道阻力</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E156')"
                                                                   value="${calculateBurn.e156Show}"
                                                                   id="E156"/>
                                                            <span class="help-inline">
                                                               Pa
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--引风机入口烟气结束-->
                                    </div>
                                    <!--左侧结束-->
                                    <!--右侧开始-->
                                    <div class="col-md-6">
                                        <!--空预器出口烟气开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>空预器出口烟气</h2>
                                            </div>
                                            <!--标题结束-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E54" id="E54Label"
                                                               style="padding-left: 0">烟气温度</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline calculable"
                                                                   onblur="BurnPage.updata('E54')"
                                                                   value="${calculateBurn.e54Show}"
                                                                   id="E54"/>
                                                            <span class="help-inline">
                                                                ℃<input type="checkbox" id="e54State" name="e54State"
                                                            <c:if test="${calculateBurn!=null&&operateField.e54State=='1'}">
                                                                       checked
                                                           </c:if>
                                                                    >
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E55"
                                                               style="padding-left: 0">炉膛负压</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E55')"
                                                                   value="${calculateBurn.e55Show}<c:if test="${calculateBurn.e55==null}">100</c:if>"
                                                                   id="E55"/>
                                                            <span class="help-inline">
                                                                Pa
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E56"
                                                               style="padding-left: 0">锅炉本体烟气侧阻力</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E56')"
                                                                   value="${calculateBurn.e56Show}"
                                                                   id="E56"/>
                                                            <span class="help-inline">
                                                               Pa
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--空预器出口烟气结束-->
                                        <!--除尘器出口烟气开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>除尘器出口烟气</h2>
                                            </div>
                                            <!--标题结束-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E103"
                                                               style="padding-left: 0">除尘器漏风率</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E103')"
                                                                   value="${calculateBurn.e103Show}<c:if test="${calculateBurn.e103==null}">0.02</c:if>"
                                                                   id="E103"/>
                                                            <span class="help-inline">
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E122" id="E122Label"
                                                               style="padding-left: 0">烟气温度</label>

                                                        <div class="col-md-8">
                                                            <input type="text"
                                                                   class="form-control input-inline calculable"
                                                                   value="${calculateBurn.e122Show}"
                                                                   id="E122" />
                                                            <span class="help-inline">
                                                                ℃<input type="checkbox" id="e122State" name="e122State"
                                                             <c:if test="${calculateBurn!=null&&operateField.e122State=='1'}">
                                                                 checked
                                                              </c:if>
                                                                    >
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E123"
                                                               style="padding-left: 0">除尘器阻力</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E123')"
                                                                   value="${calculateBurn.e123Show}"
                                                                   id="E123"/>
                                                            <span class="help-inline">
                                                               Pa
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--除尘器出口烟气结束-->
                                        <!--引风机出口烟气开始-->
                                        <div class="col-md-12 margin-bottom-10">
                                            <!--标题开始-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <h2>引风机出口烟气</h2>
                                            </div>
                                            <!--标题结束-->
                                            <div class="col-md-12 margin-bottom-10">
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="aTypeStyle control-label col-md-4" for="E170"
                                                               style="padding-left: 0">引风机出口温升(含增压风机)</label>

                                                        <div class="col-md-8">
                                                            <input type="text" class="form-control input-inline"
                                                                   value="${calculateBurn.e170Show}"
                                                                   id="E170"/>
                                                            <span class="help-inline">
                                                                ℃
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="col-md-12 margin-bottom-10" style="padding-left: 0">
                                                    <div class="form-group">
                                                        <label class="control-label col-md-4" for="E171" id="E171Label"
                                                               style="padding-left: 0">吸收塔入口烟气温度</label>

                                                        <div class="col-md-8">
                                                            <input type="text"
                                                                   class="form-control input-inline"
                                                                   onblur="BurnPage.updata('E171')"
                                                                   value="${calculateBurn.e171Show}"
                                                                   id="E171"/>
                                                            <span class="help-inline">
                                                                ℃<input type="checkbox" id="e171State" name="e171State"
                                                             <c:if test="${calculateBurn!=null&&operateField.e171State=='1'}">
                                                                        checked
                                                            </c:if>
                                                                    >
                                                            </span>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <!--引风机出口烟气结束-->
                                    </div>
                                    <!--右侧结束-->
                                </div>
                                <!--内容结束-->
                                <div class="form-body">
                                     <div class="row">
                                         <div class="col-md-5">
                                         </div>
                                         <div class="col-md-7">
                                             <button type="button" class="btn green" id="save"
                                                     onclick="BurnPage.burnSave()">确定
                                             </button>
                                             <button type="button" class="btn green" id="nextPage"
                                                     onclick="BurnPage.burnNext()">下一页
                                             </button>
                                         </div>
                                         <!--/span-->
                                     </div>
                                     <!--/span-->
                                 </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<input type="hidden" id="caseId" value="${caseId}" name="caseId">
<input type="hidden" id="addFlag" value="${calculateBurn==null?"add":"edit"}" name="addFlag">
<%@include file="../includes/footer.jsp" %>
<%@include file="../includes/bottomscript.jsp" %>
<script src="<c:url value="/js/combustion/BurnPage1.js"/>" type="text/javascript"></script>
 <script>
  $(function(){
      var caseId = $("#caseId").val();
      var step = '<%=request.getAttribute("step")==null?"":request.getAttribute("step")%>'
      if (caseId == "" || step != "") {
          var obj = getUrlByStep(step)
          toast.error(obj.message);
          setTimeout(function () {
              window.location.href = obj.url;
          }, 1200);
      }


      <%
       String message = (String) request.getAttribute("message");
       if(message!=null&&!"".equals(message)){
       if(message.equals("success")){
       %>
       toast.success("操作成功");
       <%
       }else{
       %>
       toast.error("<%=request.getAttribute("message")%>");
       <%
        }
           }
      %>

      BurnPage.init()
      BurnPage.yyglStateClick($("#yyglState"),1)
      BurnPage.E54StateClick($("#e54State"),1)
      BurnPage.E88StateClick($("#e88State"),1)
      BurnPage.E122StateClick($("#e122State"),1)
      BurnPage.E155StateClick($("#e155State"),1)
      BurnPage.E171StateClick($("#e171State"),1)
  })
</script>
</body>
</html>
